package com.kang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.entity.Like;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface LikeService extends IService<Like> {
    Integer insertLike(HttpServletRequest request, Integer essayId) throws Exception;

    Integer updateLike(HttpServletRequest request, Integer essayId) throws Exception;

    Map<String,Integer> getLikeCount(HttpServletRequest request) throws Exception;
}
